from django.test import TestCase
from rest_framework.fields import set_value, to_choices_dict

# Create your tests here.
res = set_value({'a': 1}, ['x', 'y'], 2)
print(to_choices_dict([1, 2, 3]))
print(to_choices_dict([(1, 'First'), (2, 'Second'), (3, 'Third')]))
print(to_choices_dict([('Category', ((1, 'First'), (2, 'Second'))), (3, 'Third')]))


